import 'package:flutter/cupertino.dart';

import '../page/drift_test.dart';
import '../page/index.dart';
import '../page/inherited_notifiter_widget.dart';
import '../page/inherited_page.dart';
import '../page/pageview_count.dart';
import '../page/repaint_boundary_test.dart';
import '../page/stream_builder_test.dart';

class AppRoutes {
  // 使用静态方法返回路由表
  static Map<String, WidgetBuilder> getRoutes() {
    return {
      "/": (context) => const Index(),
      StreamBuilderTest.routeName: (context) => const StreamBuilderTest(),
      RepaintBoundaryTest.routeName: (context) => RepaintBoundaryTest(),
      InheritedPage.routeName: (context) => const InheritedPage(),
      InheritedNotifierPage.routeName: (context) =>
          const InheritedNotifierPage(),
      PageViewCount.routeName: (context) => const PageViewCount(),
      DriftTest.routeName: (context) => const DriftTest(),
    };
  }
}
